<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java"  pageEncoding="UTF-8" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title>兽医信息界面</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link href="${pageContext.request.contextPath}/static/css/css.css" rel="stylesheet" type="text/css">

    <style type="text/css">
        #content {
            position: relative;
            top: 3px;
            width: 80%;
            height: 380px;
            margin: auto;
            overflow: hidden;
            z-index: 2;
        }

        .tab1 {
            position: relative;
            top: 40px;
            font-size: 24px;
        }


        #aa {
            position: relative;
            top: 60px;
        }
    </style>

</head>
<body>
<!-- include top -->
<jsp:include page="${pageContext.request.contextPath}/top.jsp" flush="true"/>
<center>
    <div id="content">
        <table border="1" cellpadding="0" cellspacing="0" class="tab1" width="700px">
            <tr>
                <th>序号</th>
                <th>姓名</th>
                <th>专业</th>
                <th>电话</th>
                <th>地址</th>
                <th colspan="2">操作</th>
            </tr>
            <c:if test="${qq==1}">
                <tr align="center">
                    <td>${vets.id}</td>
                    <td>${vets.name}</td>
                    <td>${specialties.name}</td>
                    <td>${vets.telephone}</td>
                    <td>${vets.address}</td>
                    <td style="font-size: 15px"><a style="color: #000" onmouseover="this.style.color='red'"
                                                   onmouseout="this.style.color='#000'"
                                                   href="${pageContext.request.contextPath}/doc/toDocUpdate?id=${vets.id}">修改</a>
                    </td>
                    <td style="font-size: 15px"><a style="color: #000" onmouseover="this.style.color='red'"
                                                   onmouseout="this.style.color='#000'" href="${pageContext.request.contextPath}/doc/deleteDoc?id=${vets.id}">删除</a></td>
                </tr>
            </c:if>
            <c:if test="${qq==2}">
                <c:forEach items="${vetsList}" var="vets">
                    <tr align="center">
                        <td>${vets.id}</td>
                        <td>${vets.name}</td>
                        <td>${specialties.name}</td>
                        <td>${vets.telephone}</td>
                        <td>${vets.address}</td>
                        <td style="font-size: 15px" ><a style="color: #000" onmouseover="this.style.color='green'"
                                                        onmouseout="this.style.color='#000'"
                                                        href="${pageContext.request.contextPath}/doc/toDocUpdate?id=${vets.id}">修改</a></td>
                        <td style="font-size: 15px" ><a style="color: #000" onmouseover="this.style.color='green'"
                                                        onmouseout="this.style.color='#000'" href="${pageContext.request.contextPath}/doc/deleteDoc?id=${vets.id}">删除</a></td>
                    </tr>
                </c:forEach>
            </c:if>
        </table>

        <a class="btn btn-default" id="aa"
           href="${pageContext.request.contextPath}/doc/toDocSearch"
           role="button">重新查询</a>
    </div>
</center>
<!-- include footer -->
<jsp:include page="${pageContext.request.contextPath}/footer.jsp" flush="true"/>
</body>
</html>
